//
//  ViewController.h
//  VoiceRecognize
//
//  Created by Khanh Nguyen on 28/11/13.
//  Copyright (c) 2013 Khanh Nguyen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <SpeechKit/SpeechKit.h>
@interface ViewController : UIViewController<SpeechKitDelegate, SKRecognizerDelegate, UITextFieldDelegate>
{
    SKRecognizer* voiceSearch;
    enum {
        TS_IDLE,
        TS_INITIAL,
        TS_RECORDING,
        TS_PROCESSING,
    } transactionState;
}

@property (nonatomic, retain) IBOutlet UIButton *btnRecord;
@property (nonatomic, retain) IBOutlet UILabel *labelResult;
-(IBAction)recordButtonPress:(id)sender;
@end
